package com.bizhibihui.ordermeal.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bizhibihui.ordermeal.entity.BizAddress;
import com.bizhibihui.ordermeal.mapper.BizAddressMapper;
import com.bizhibihui.ordermeal.service.BizAddressService;
import com.bizhibihui.ordermeal.vo.AddressConditionVo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 */
@Service
@AllArgsConstructor
public class BizAddressServiceImpl extends ServiceImpl<BizAddressMapper, BizAddress> implements BizAddressService {
    private BizAddressMapper bizAddressMapper;


    @Override
    public List<BizAddress> findByCondition(IPage<BizAddress> page, AddressConditionVo vo) {
        return bizAddressMapper.findByCondition(page,vo);
    }

    @Override
    public List<BizAddress> getMyAddress(String userId) {
        return bizAddressMapper.getMyAddress(userId);
    }
}
